/*     */ package com.zimbra.cs.index;
/*     */ 
/*     */ import com.zimbra.common.service.ServiceException;
/*     */ import com.zimbra.cs.mailbox.Mailbox;
/*     */ import java.io.IOException;
/*     */ import java.util.List;
/*     */ import java.util.Set;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ abstract class FilterQueryOperation
/*     */   extends QueryOperation
/*     */ {
/*     */   protected QueryOperation operation;
/*     */   
/*     */   protected QueryOperation combineOps(QueryOperation other, boolean union)
/*     */   {
/*  39 */     return null;
/*     */   }
/*     */   
/*     */   protected void depthFirstRecurse(QueryOperation.RecurseCallback cb)
/*     */   {
/*  44 */     this.operation.depthFirstRecurse(cb);
/*  45 */     cb.recurseCallback(this);
/*     */   }
/*     */   
/*     */   QueryOperation expandLocalRemotePart(Mailbox mbox) throws ServiceException
/*     */   {
/*  50 */     this.operation.expandLocalRemotePart(mbox);
/*  51 */     return this;
/*     */   }
/*     */   
/*     */   QueryOperation ensureSpamTrashSetting(Mailbox mbox, boolean includeTrash, boolean includeSpam)
/*     */     throws ServiceException
/*     */   {
/*  57 */     return this.operation.ensureSpamTrashSetting(mbox, includeTrash, includeSpam);
/*     */   }
/*     */   
/*     */   void forceHasSpamTrashSetting()
/*     */   {
/*  62 */     this.operation.forceHasSpamTrashSetting();
/*     */   }
/*     */   
/*     */   Set<QueryTarget> getQueryTargets()
/*     */   {
/*  67 */     return this.operation.getQueryTargets();
/*     */   }
/*     */   
/*     */   boolean hasAllResults()
/*     */   {
/*  72 */     return this.operation.hasAllResults();
/*     */   }
/*     */   
/*     */   boolean hasNoResults()
/*     */   {
/*  77 */     return this.operation.hasNoResults();
/*     */   }
/*     */   
/*     */   boolean hasSpamTrashSetting()
/*     */   {
/*  82 */     return this.operation.hasSpamTrashSetting();
/*     */   }
/*     */   
/*     */   QueryOperation optimize(Mailbox mbox)
/*     */     throws ServiceException
/*     */   {
/*  88 */     this.operation = this.operation.optimize(mbox);
/*  89 */     return this;
/*     */   }
/*     */   
/*     */   protected void begin(QueryOperation.QueryContext ctx) throws ServiceException
/*     */   {
/*  94 */     assert (this.context == null);
/*  95 */     this.context = ctx;
/*  96 */     this.operation.begin(ctx);
/*     */   }
/*     */   
/*     */   String toQueryString()
/*     */   {
/* 101 */     return this.operation.toQueryString();
/*     */   }
/*     */   
/*     */   public void close() throws IOException
/*     */   {
/* 106 */     this.operation.close();
/*     */   }
/*     */   
/*     */   public ZimbraHit getNext() throws ServiceException
/*     */   {
/* 111 */     ZimbraHit hit = peekNext();
/* 112 */     if (hit != null) {
/* 113 */       this.operation.getNext();
/*     */     }
/* 115 */     return hit;
/*     */   }
/*     */   
/*     */   public List<QueryInfo> getResultInfo()
/*     */   {
/* 120 */     return this.operation.getResultInfo();
/*     */   }
/*     */   
/*     */   public ZimbraHit peekNext() throws ServiceException
/*     */   {
/* 125 */     return this.operation.peekNext();
/*     */   }
/*     */   
/*     */   public void resetIterator() throws ServiceException
/*     */   {
/* 130 */     this.operation.resetIterator();
/*     */   }
/*     */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/index/FilterQueryOperation.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */